From: Jasper St. Pierre Date: Mon, 10 Dec 2012 08:40:30 +0000 (-0500) Subject: panel: Remove a dead check X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5265 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=04bf75d137991dff8c6cb67ea4eee743b8bdb369;p=gnome-shell.git panel: Remove a dead check With the dummy menu item now in place, we will always have a menu. https://bugzilla.gnome.org/show_bug.cgi?id=689954 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index 712abd7d7..64a6d43be 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -599,7 +599,7 @@ const AppMenuButton = new Lang.Class({ menu = new PopupMenu.RemoteMenu(this.actor, this._targetApp.menu, this._targetApp.action_group); } else { - if (this.menu && this.menu.isDummyQuitMenu) + if (this.menu.isDummyQuitMenu) return; // fallback to older menu